﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StandState : Istates
{
    public EntityBase User;
    public MonoParameter para;

    public StandState(EntityBase user)
    {
        this.User = user;
        this.para = User.parameter;
    }
    public void OnEnter()
    {
        //Debug.Log("enter stand");
    }
    public void OnUpdate()
    {
        para.ComponentData.animator.SetFloat("Horizontal", para.MovementData.moveDir.x);
        para.ComponentData.animator.SetFloat("Vertical", para.MovementData.moveDir.y);
        para.ComponentData.animator.Play("Stand");
        //Debug.Log("update stand");
    }
    public void OnExit()
    {
    }
}
